home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Animation How-To
/
Animation How-to CD.iso
/
PLY
/
CHAPTER3
/
FAKE
/
FAKE2.PI
< prev
next >
Wrap
Text File
|
1994-01-01
|
3KB
|
154 lines
// FAKE2.PI - Image mapped endless tunnel with mirrors
// Some of the harsh edges of the walls were hidden with grey
// cylinders in this view.
// You need three targa files as image maps:
// The Floor - Floor.tga
// The Walls- Walls.tga
// The ceiling - Ceiling.tga
start_frame 0
end_frame 9
total_frames 10
outfile "fake2"
include "\ply\colors.inc"
viewpoint {
from <0,6,-22.5+frame*5>
at <0,6,2000>
up <0,1,0>
angle 30
resolution 320,200
aspect 1.433
}
background <0.4,0.4,0.4>
define disc_image1 image("ceiling.tga")
define sandy
texture {
special surface {
color planar_imagemap(disc_image1, P, 1)
ambient 0.2
diffuse 0.8
}
translate <-0.5, 0, -0.5>
scale <4,4,4>
rotate <0,180,0>
}
define disc_image2 image("floor.tga")
define cement
texture {
special surface {
color planar_imagemap(disc_image2, P, 1)
ambient 0.2
diffuse 0.8
}
translate <-0.5, 0, -0.5>
scale<4,4,4>
rotate <0,180,0>
}
define disc_image3 image("walls.tga")
define stucco
texture {
special surface {
color planar_imagemap(disc_image3, P, 1)
ambient 0.2
diffuse 0.8
}
translate <-0.5, 0, -0.5>
rotate <0,0,90>
scale <6,6,6>
}
define reflector
texture {
surface {
ambient white, 0
diffuse white, 0
specular 0
reflection white, 1
}
}
define matte
surface {
ambient 0.3
diffuse 0.8
}
define dull_grey texture { matte { color <0.4,0.4,0.4> } }
// wall's
define wall
object {
object { polygon 4, <-4, 9,-6>, <-4,-1, -6>, <-4,-1, -26>, <-4,9,-26> stucco }
+ object { polygon 4, < 4, 9,-6>, < 4,-1, -6>, < 4,-1, -26>, < 4,9,-26> stucco }
+ object { polygon 4, <-5,0,-26>,<5,0,-26>,<5,0,0>,<-5,0,0> cement}
+ object { polygon 4, <-5,8,-26>,<5,8,-26>,<5,8,0>,<-5,8,0> sandy}
+ object { cylinder <-6,-1,-6>,<-6,9,-6>,2 dull_grey }
}
define hall
object {
wall {rotate <0, 0,0>}
+ wall {rotate <0, 90,0>}
+ wall {rotate <0,180,0>}
+ wall {rotate <0,270,0>}
}
// ceiling
//object {
// polygon 4, <-26,8,-26>,<-26,8,26>,<26,8,26>,<26,8,-26>
// sandy
// }
define bright_white
texture {
surface {
ambient 0.3
diffuse 0.7
color <2,2,2>
}
}
define fixture
object {
box <-2.5,7.8,-2.5>, <2.5, 8, 2.5>
bright_white
}
hall
fixture
fixture {translate < 25,0, 0>}
fixture {translate <-25,0, 0>}
fixture {translate < 0,0, 25>}
fixture {translate < 0,0,-25>}
define dim 0.6
light white*dim,<0,7,0>
light white*dim,<24,7,0>
light white*dim,<-24,7,0>
light white*dim,<0,7,24>
light white*dim,<0,7,-24>
define mirror1
object {
polygon 4, <-5,-1,0>,<5,-1,0>,<5,9,0>,<-5,9,0>
translate <0,0,-25>
reflector
}
mirror1 {rotate <0, 0,0>}
mirror1 {rotate <0, 90,0>}
mirror1 {rotate <0,180,0>}
mirror1 {rotate <0,270,0>}